<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JavaScript 使用误区-return 语句使用注意事项-2</title>
</head>

<!-- JavaScript 默认是在代码的最后一行自动结束。 -->

<body>
    <p id="demo"></p>
    <script>
        document.getElementById("demo").innerHTML = myFunction(55);
        function myFunction(a) {
            var power = 10;
            return a * power;
        }
    </script>
</body>

</html>